package org.bigmarketapi.projectreview.DesingMode.DecoratorPattern.Basic;

import org.bigmarketapi.projectreview.DesingMode.DecoratorPattern.Robot;

/**
 * @BelongsProject: ProjectReview
 * @BelongsPackage: org.bigmarketapi.projectreview.DesingMode.DecoratorPattern
 * @Author: dujiaqi
 * @CreateTime: 2024-11-16  16:45
 * @Description: TODO
 * @Version: 1.0
 */
public class RobotDecorator implements Robot {
    FirstRobot firstRobot;

    public RobotDecorator(FirstRobot firstRobot) {
        this.firstRobot = firstRobot;
    }

    @Override
    public void doSomeThing() {
        firstRobot.doSomeThing();
    }
    public  void  doMoreThing(){
        firstRobot.doSomeThing();
        System.out.println("跳舞");
    }
}
